<template>
  <div class="left-container">
    <h3>Left 组件</h3>
    <p>{{ msg }}</p>
    <button @click="submit">+1</button>
  </div>
</template>

<script>
import bus from '../EventBus/index.js'
export default {
  props:{
    msg:{
      type: Number,
      default: 577
    }
  },
  methods:{
    submit() {
      this.$emit('submit')
      bus.$emit('onlist', this.msg + 1)
    }
  }
}
</script>

<style lang="less">
.left-container {
  padding: 0 20px 20px;
  background-color: orange;
  min-height: 250px;
  flex: 1;
}
</style>
